package com.briup.cms.service.impl;

import com.briup.cms.bean.BaseConfig;
import com.briup.cms.dao.BaseConfigMapper;
import com.briup.cms.dao.extend.BaseConfigExtendMapper;
import com.briup.cms.exception.CustomerException;
import com.briup.cms.service.IBaseConfigService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 基础配置服务层
 */
@Service
public class BaseConfigServiceImpl implements IBaseConfigService{
	
	@Autowired
	private BaseConfigMapper baseConfigMapper;
	@Autowired
	private BaseConfigExtendMapper baseConfigExtendMapper;


	/**
	 * 保存配置信息
	 */
	@Transactional
	@Override
	public void saveConfig(BaseConfig baseConfig) throws CustomerException {

	}

	/**
	 * 更新配置信息
	 */
	@Transactional
	@Override
	public void updateConfig(BaseConfig baseConfig) throws CustomerException {

	}

	/**
	 * 改变配置信息的状态为启用
	 */
	@Transactional
	@Override
	public void changeConfigStatus(int id, int status) throws CustomerException {

	}

	/**
	 * 根据id删除
	 */
	@Transactional
	@Override
	public void deleteById(int id)throws CustomerException {

	}

	/**
	 * 分页询所有配置信息
	 */
	@Override
	public PageInfo<BaseConfig> findAllWithPage(int pageNum, int pageSize)throws CustomerException {
		return null;
	}

	/**
	 * 查找当前启用的配置信息
	 */
	@Override
	public BaseConfig currentConfigYes() throws CustomerException {


		return null;
	}

}
